<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DesignerService',
    'namespace'     => 'Beerus\\Modules\\DesignerService\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    $router->get('/service_content', 'ServiceContentController@index');

    // 服务指南审核
	$router->get('/service_audit', 'ServiceContentAuditController@index')->name('service_audit.list');
	$router->get('/service_audit/{id}/edit', 'ServiceContentAuditController@edit');
	$router->post('/service_audit/save', 'ServiceContentAuditController@save');

    // 服务内容处理
	$router->get('/stage_service', 'StageServiceController@index')->name('stage_service.list');
	$router->get('/stage_service/create', 'StageServiceController@edit');
	$router->get('/stage_service/{id}/edit', 'StageServiceController@edit');
	$router->post('/stage_service/save', 'StageServiceController@submit');

    // 服务违规处理
    $router->get('/service_violation', 'ServiceViolationController@index')->name('service_violation.list');
    $router->get('/service_violation/create', 'ServiceViolationController@edit');
    $router->get('/service_violation/{id}/edit', 'ServiceViolationController@edit');
    $router->post('/service_violation/save', 'ServiceViolationController@submit');
    $router->delete('/service_violation/{id}', 'ServiceViolationController@delete');

    // 合同相关
    $router->get('/contract', 'ContractController@index')->name('contract.list');
    $router->get('/contract/keywords', 'ContractKeywordsController@index');
    $router->get('/contract/{id}/edit/{is_view}', 'ContractController@edit');
    $router->get('/contract/{id}/info', 'ContractController@info');
    $router->post('/contract/save', 'ContractController@save');
    $router->get('/white/export', 'ContractController@export');

});
